<template>
  <div>正在退出...</div>
</template>

<script setup>
import { useUserStore, useTabStore } from '@/stores'
import { useRouter } from 'vue-router'

const userStore = useUserStore()
const tabStore = useTabStore()
const router = useRouter()

setTimeout(() => {
  // 重置 state
  userStore.$reset()
  tabStore.$reset()

  router.push({ name: 'login' })
}, 1000)
</script>

<style lang="scss" scoped></style>
